import matplotlib.pyplot as plt
import numpy as np

#字体设置
plt.rcParams['font.sans-serif'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False
plt.figure()
angles=np.linspace(0,2*np.pi,5,endpoint=False)

labels = ['生存', '输出', '团战', 'KDA', '发育']

data=[1,2,3,4,5]

data=np.concatenate((data,[data[0]]))
angles=np.concatenate((angles,[angles[0]]))


plt.polar(angles,data,color='c',marker='o')
plt.title('能力图')
plt.xticks(angles[:-1],labels)
plt.show()
